package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ToSql implements TransformElement {

    private int beginIndex;
    private int endIndex;
    private SpecificRoutineDesignator toSqlFunction;

    public ToSql(int beginIndex, SpecificRoutineDesignator toSqlFunction) {
        this.beginIndex = beginIndex;
        this.endIndex = toSqlFunction.getEndIndex();
        this.toSqlFunction = toSqlFunction;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SpecificRoutineDesignator getToSqlFunction() {
        return toSqlFunction;
    }

}
